package com.quartz.tasks.web.entity;

import javax.persistence.Column;
import javax.validation.constraints.NotEmpty;

/**
 *
 *@author： 彭长云
 * @Description:任务类
 * @date： 2018/12/5 15:51
 */
public class QuartzEntity {

	private String jobName;//任务名称
	private String jobGroup;//任务分组
	@NotEmpty(message = "任务描述不能为空!")
	private String description;//任务描述
	private String jobClassName;//执行类
	@NotEmpty(message = "执行时间表达式不能为空!")
	private String cronExpression;//执行时间
	private String triggerName;//执行时间
	private String triggerState;//任务状态
	private String oldJobName;//任务名称 用于修改
	private String oldJobGroup;//任务分组 用于修改

	@NotEmpty(message = "定时任务调用的URL不能为空!")
	private String url;//定时任务调用的url
	private String JsonData;//调用接口需要传递的json数据
	
	public QuartzEntity() {
		super();
	}
	public QuartzEntity(String jobName, String jobGroup, String description, String jobClassName, String cronExpression, String triggerName) {
		super();
		this.jobName = jobName;
		this.jobGroup = jobGroup;
		this.description = description;
		this.jobClassName = jobClassName;
		this.cronExpression = cronExpression;
		this.triggerName = triggerName;
	}

	public String getJobName() {
		return jobName;
	}
	public void setJobName(String jobName) {
		this.jobName = jobName;
	}
	public String getJobGroup() {
		return jobGroup;
	}
	public void setJobGroup(String jobGroup) {
		this.jobGroup = jobGroup;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getJobClassName() {
		return jobClassName;
	}
	public void setJobClassName(String jobClassName) {
		this.jobClassName = jobClassName;
	}
	public String getCronExpression() {
		return cronExpression;
	}
	public void setCronExpression(String cronExpression) {
		this.cronExpression = cronExpression;
	}
	public String getTriggerName() {
		return triggerName;
	}
	public void setTriggerName(String triggerName) {
		this.triggerName = triggerName;
	}
	public String getTriggerState() {
		return triggerState;
	}
	public void setTriggerState(String triggerState) {
		this.triggerState = triggerState;
	}
	public String getOldJobName() {
		return oldJobName;
	}
	public void setOldJobName(String oldJobName) {
		this.oldJobName = oldJobName;
	}
	public String getOldJobGroup() {
		return oldJobGroup;
	}
	public void setOldJobGroup(String oldJobGroup) {
		this.oldJobGroup = oldJobGroup;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getJsonData() {
		return JsonData;
	}

	public void setJsonData(String jsonData) {
		JsonData = jsonData;
	}
}
